package com.xf.spring.properties;

import java.sql.SQLException;

import javax.sql.DataSource;

import org.springframework.context.ApplicationContext;
import org.springframework.context.support.ClassPathXmlApplicationContext;

public class Test {

	public static void main(String[] args) throws SQLException {
		ApplicationContext ct = new ClassPathXmlApplicationContext("xmls/bean-property.xml");
		DataSource d=(DataSource) ct.getBean("dataSource");
	
		System.out.println(d.getConnection());
	}

}
